<?php
// HTML5 settings, permission for upload file request.
// Below HTML5 permission setting at crossdomain.xml.
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
    header('Access-Control-Allow-Origin: *');
	exit;
}

// Find the file you want to catalog .debug at the site, 
// set up for the development mode
if(is_file('./.debug')) {
    define('YII_DEBUG', true);
    require 'framework/yii.php';
}
else {
    define('YII_DEBUG', false);
    error_reporting(0);
    require 'framework/yiilite.php';
}

$config = __DIR__.'/config/main.php';
Yii::createWebApplication($config)->run();
